﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Edit.Master"  AutoEventWireup="true" ValidateRequest="false" CodeBehind="Project_Edit.aspx.cs" Inherits="Honestysoft.Financing.WebUI.Module.Project.Project_Edit" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../../Styles/tab/tab.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript" src="../../Styles/tab/tab.js"></script>
    <script language="javascript" type="text/javascript" src="../../Apply/SelectOu.js"></script>
<%--    <script language="javascript" type="text/javascript" src="../../Scripts/control.js"></script>--%>
    <script language="javascript" type="text/javascript">
        function SelectOwner971() {
            var val= SelectOu('<%=Honestysoft.Baseframework.WebUI.Globals.Home %>', '<%=((int)Honestysoft.Baseframework.Model.EnumItem.OuSelectViewStyle.Style2).ToString() %>', '<%=((int)Honestysoft.Baseframework.Model.EnumItem.OuSelectMode.Single).ToString() %>', '<%=((int)Honestysoft.Baseframework.Model.EnumItem.OuSelectTarget.Outer).ToString() %>', '<%=((int)Honestysoft.Baseframework.Model.EnumItem.OuSelectNodeType.Company).ToString() %>', '<%=txtOwner971.ClientID %>', '<%=hidOwner971.ClientID %>');
            return false;
        }
        function SelectOwner() {
            var val = SelectOu('<%=Honestysoft.Baseframework.WebUI.Globals.Home %>', '<%=((int)Honestysoft.Baseframework.Model.EnumItem.OuSelectViewStyle.Style2).ToString() %>', '<%=((int)Honestysoft.Baseframework.Model.EnumItem.OuSelectMode.Single).ToString() %>', '<%=((int)Honestysoft.Baseframework.Model.EnumItem.OuSelectTarget.Outer).ToString() %>', '<%=((int)Honestysoft.Baseframework.Model.EnumItem.OuSelectNodeType.Company).ToString() %>', '<%=txtOwner.ClientID %>', '<%=hidOwner.ClientID %>');
            return false;
        } 
        function SelectDOwner() {
            return SelectOu('<%=Honestysoft.Baseframework.WebUI.Globals.Home %>', '<%=((int)Honestysoft.Baseframework.Model.EnumItem.OuSelectViewStyle.Style2).ToString() %>', '<%=((int)Honestysoft.Baseframework.Model.EnumItem.OuSelectMode.Multi_Append).ToString() %>', '<%=((int)Honestysoft.Baseframework.Model.EnumItem.OuSelectTarget.Outer).ToString() %>', '<%=((int)Honestysoft.Baseframework.Model.EnumItem.OuSelectNodeType.Company).ToString() %>', '<%=txtDOwner.ClientID %>', '<%=hidDOwner.ClientID %>');
        }
        function ClearDOwner() {
            document.getElementById('<%=txtDOwner.ClientID %>').value = "";
            document.getElementById('<%=hidDOwner.ClientID %>').value = "";
        }
    </script>
    <script language="javascript" type="text/javascript">
        function openDialog(url, width, height, title) {
            var obj = new Object();
            obj.name = title;
            var UrlTmp = escape(url);
            var retValue = window.showModalDialog('<%=Page.ResolveClientUrl("~/") %>Scripts/ShowDlg.aspx?url=' + UrlTmp, obj, 'scroll:0;status:0;help:1;resizable:0;dialogWidth:' + width + 'px;dialogHeight:' + height + 'px');
            return false;
        }
        function setBudget(val) {
            var lastBudget = document.getElementById("<%=hidLastBudget.ClientID %>").value;
            if (lastBudget == "0.00" || lastBudget == "") {
                document.getElementById("<%=hidLastBudget.ClientID %>").value = val;
            }
        }
        function addBudget() {
            var lastBudget = document.getElementById("<%=hidLastBudget.ClientID %>").value;
            if (lastBudget == "0.00" || lastBudget=="") {
                alert("当前缺少总投资数据，不能新增概算变动！");
                return false;
            }
            var obj = new Object();
            obj.name = "新增概算变动";
            var UrlTmp = escape('<%=Honestysoft.Baseframework.WebUI.Globals.Home %>Module/Project/BD_ProjectBudget_Edit.aspx?LastBudget=' + lastBudget);
            var retValue = window.showModalDialog('<%=Page.ResolveClientUrl("~/") %>Scripts/ShowDlg.aspx?url=' + UrlTmp, obj, 'scroll:0;status:0;help:1;resizable:0;dialogWidth:400px;dialogHeight:370px');
            if (typeof (retValue) != "undefined" && retValue != null) {
                var jsonString = unescape(retValue);
                document.getElementById("<%=hidAddBudget.ClientID %>").value = jsonString;
                return true;
            }
            return false;
        }
        function addYearPlan() {
            var obj = new Object();
            obj.name = "新增年度投资计划";
            var UrlTmp = escape('<%=Honestysoft.Baseframework.WebUI.Globals.Home %>Module/Project/BD_ProjectInvestmentPlan_Edit.aspx');
            var retValue = window.showModalDialog('<%=Page.ResolveClientUrl("~/") %>Scripts/ShowDlg.aspx?url=' + UrlTmp, obj, 'scroll:0;status:0;help:1;resizable:0;dialogWidth:400px;dialogHeight:370px');
            if (typeof (retValue) != "undefined" && retValue != null) {
                var jsonString = unescape(retValue);
                document.getElementById("<%=hidAddYearPlan.ClientID %>").value = jsonString;
                return true;
            }
            return false;
        }
        function addProjLoan() {
            var obj = new Object();
            obj.name = "新增项目贷款额度";
            var UrlTmp = escape('<%=Honestysoft.Baseframework.WebUI.Globals.Home %>Module/Project/BD_ProjectLoanAmount_Edit.aspx');
            var retValue = window.showModalDialog('<%=Page.ResolveClientUrl("~/") %>Scripts/ShowDlg.aspx?url=' + UrlTmp, obj, 'scroll:0;status:0;help:1;resizable:0;dialogWidth:400px;dialogHeight:370px');
            if (typeof (retValue) != "undefined" && retValue != null) {
                var jsonString = unescape(retValue);
                document.getElementById("<%=hidAddProjLoan.ClientID %>").value = jsonString;
                return true;
            }
            return false;
        }
        function addGKLoan() {
            var obj = new Object();
            obj.name = "新增国开行贷款额度";
            var UrlTmp = escape('<%=Honestysoft.Baseframework.WebUI.Globals.Home %>Module/Project/BD_ProjectGKLoanAmount_Edit.aspx');
            var retValue = window.showModalDialog('<%=Page.ResolveClientUrl("~/") %>Scripts/ShowDlg.aspx?url=' + UrlTmp, obj, 'scroll:0;status:0;help:1;resizable:0;dialogWidth:400px;dialogHeight:370px');
            if (typeof (retValue) != "undefined" && retValue != null) {
                var jsonString = unescape(retValue);
                document.getElementById("<%=hidAddGKLoan.ClientID %>").value = jsonString;
                return true;
            }
            return false;
        }
        
        function checkSave() {
            if (document.getElementById("<%=txtSN.ClientID %>").value == "") {
                alert("请输入编号！");
                return false;
            }
            if (document.getElementById("<%=txtName.ClientID %>").value == "") {
                alert("请输入项目名称！");
                return false;
            }
            if (document.getElementById("<%=txtOwner971.ClientID %>").value == "") {
                alert("请选择项目单位！");
                return false;
            }

            if (document.getElementById("<%=txtOwner.ClientID %>").value == "") {
                alert("请选择建设单位！");
                return false;
            }
            if (document.getElementById("<%=numInvestment.ClientID %>").value == "") {
                alert("请输入总投资！");
                return false;
            }
            if (document.getElementById("<%=numFinInvestment.ClientID %>").value == "") {
                alert("请输入财政累计投资！");
                return false;
            }
            if (document.getElementById("<%=numTotalCapitalAmount.ClientID %>").value == "") {
                alert("请输入资本金到位金额！");
                return false;
            }
            return true;
        }
    </script>
    <script language="javascript" type="text/javascript">
        var opts = null;
        function InitRules() {
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="nTab_l">
    <div class="TabTitle_l">
        <ul id="myTab_l">
            <li id='li0' class="active" onclick="nTabs(this,0);" style="padding-left:0px;" >基本信息</li>
            <li id='li1'   class="normal" onclick="nTabs(this,1);"  style="padding-left:0px;" >概算变动</li> 
            <li id='li2'   class="normal" onclick="nTabs(this,2);"  style="padding-left:0px;" >投资计划</li>
            <li id='li3'   class="normal" onclick="nTabs(this,3);"  style="padding-left:0px;"  >贷款额度</li>
            <li id='li4'   class="normal" onclick="nTabs(this,4);"  style="padding-left:0px;"  >国开行贷款</li>
            <li id='li5'  class="normal" onclick="nTabs(this,5);"  style="padding-left:0px;"  >资本金变动</li>
            <li id='li6'  class="normal" onclick="nTabs(this,6);"  style="padding-left:0px;"  >资金信息</li>
        </ul>
    </div>
    <div class="TabContent_l" style="height:480px;overflow-y:hidden">
		<div id="myTab_l_Content0"  style="width:98%;padding-top:8px;height:480px;overflow:scroll">
        <table cellpadding="0" width="96%" cellspacing="0" border="1" class="tEdit">
		<tr>
			<td style="width:100px;" class="title1">项目代码<span class="req">﹡</span></td>
			<td><asp:TextBox ID="txtCode" runat="server"  cssClass="input2" MaxLength="200" Width="96%"></asp:TextBox></td>
            <td style="width:100px;" class="title1">编号<span class="req">﹡</span></td>
			<td><asp:TextBox ID="txtSN" runat="server"  cssClass="input2" MaxLength="200" Width="96%"></asp:TextBox></td>
		</tr>
		<tr>
            <td class="title1">项目名称<span class="req">﹡</span></td>
			<td><asp:TextBox ID="txtName" runat="server" cssClass="input2" MaxLength="200" Width="96%"></asp:TextBox></td>
			<td class="title1">属于拆分项目</td>
			<td><asp:CheckBox ID="chkIsSplit" runat="server"></asp:CheckBox></td>
		</tr>
        <tr>
            <td class="title1">项目文号</td>
			<td><asp:TextBox ID="txtOfficialNo" runat="server"  cssClass="input2" MaxLength="200" Width="96%"></asp:TextBox></td>
            <td class="title1">是否动态拆分</td>
            <td><asp:CheckBox ID="chkIsDymSplit" onclick="checkDymSplit(this);" runat="server"></asp:CheckBox></td>
        </tr>
		<tr>			
			<td class="title1">项目单位<span class="req">﹡</span></td>
			<td colspan="3">
                <asp:TextBox ID="txtOwner971"  runat="server" cssClass="input2" Width="92%"></asp:TextBox>
                <asp:HiddenField ID="hidOwner971" runat="server" />
                <asp:Button runat="server" ID="btnSelect1" Text="选择" 
                    OnClientClick="return SelectOwner971();" class="btn_small_normal" 
                onmouseover="this.className='btn_small_active'" 
                onmouseout="this.className='btn_small_normal'" />
            </td>
		</tr>
		<tr>
			<td class="title1">建设单位<span class="req">﹡</span></td>
			<td colspan="3">
                <asp:TextBox ID="txtOwner" runat="server" cssClass="input2" Width="92%"></asp:TextBox>
                <asp:HiddenField ID="hidOwner" runat="server" />
                <asp:Button runat="server" ID="btnSelect2" Text="选择" 
                    OnClientClick="return SelectOwner();" class="btn_small_normal" 
                onmouseover="this.className='btn_small_active'" 
                onmouseout="this.className='btn_small_normal'" />
            </td>
		</tr>
        <tr>
			<td class="title1">委托代建单位</td>
			<td colspan="3">
            <div style="text-align:left">
                 <asp:TextBox ID="txtDOwner" style="display:none" runat="server" cssClass="input2"></asp:TextBox>
                <asp:HiddenField ID="hidDOwner" runat="server" />
                <asp:Button runat="server" ID="Button1" Text="选择" 
                     OnClientClick="return SelectDOwner();" class="btn_small_normal" 
                onmouseover="this.className='btn_small_active'" 
                onmouseout="this.className='btn_small_normal'" onclick="Button1_Click" />
                 <asp:Button runat="server" ID="Button2" Text="删除"  class="btn_small_normal" 
                onmouseover="this.className='btn_small_active'" 
                onmouseout="this.className='btn_small_normal'" onclick="Button2_Click" />
            </div>
                 <table cellpadding="0" width="100%" cellspacing="0" border="1" class="t1" id="tGrid">
		            <thead>  
                        <th align="center" width="30px">
                            <input type="checkbox" name="chkAll" value="checkbox" onclick='javascript:checkAll(this,"chkID")' />
                        </th>
                        <th align="center">单位名称</th>
                        <th align="center" width="50px">操作</th>
                    </thead>
                    <asp:Repeater runat="server" ID="rptDOwnerList">
			            <ItemTemplate>
				            <tr>
					            <td align="center" >
                                    <input type="checkbox" name="chkID" id="chk<%# DataBinder.Eval(Container.DataItem,"ID") %>"  value="<%# DataBinder.Eval(Container.DataItem,"ID") %>" >
					            </td>
					            <td style="text-align:left"><%#  DataBinder.Eval(Container.DataItem,"CompanyName") %></td>
                                <td><%#  Honestysoft.Baseframework.WebUI.ScriptHelper.LinkButton.GetGridDeleteButton(DataBinder.Eval(Container.DataItem, "ID") + "", Button2.ClientID)%></td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </table>

               
            </td>
		</tr>
		<tr>
			<td class="title1">建设性质</td>
			<td><asp:DropDownList ID="ddlConType" runat="server" cssClass="input2"  Width="98%"></asp:DropDownList></td>
            <td class="title1">项目阶段</td>
			<td><asp:DropDownList ID="ddlProjectPhase" runat="server" cssClass="input2"  Width="98%"></asp:DropDownList></td>
			
		</tr>
		<tr>
            <td class="title1">计划开工日期</td>
			<td><asp:TextBox ID="dtpPlanStart" runat="server" cssClass="input2" onfocus="setday(this);" Width="96%"></asp:TextBox></td>
			<td class="title1">计划竣工日期</td>
			<td><asp:TextBox ID="dtpPlanEnd" runat="server" cssClass="input2" onfocus="setday(this);" Width="96%"></asp:TextBox></td>
			
		</tr>
		<tr>
            <td class="title1">实际开工日期</td>
			<td><asp:TextBox ID="dtpStartDate" runat="server" cssClass="input2" onfocus="setday(this);" Width="96%"></asp:TextBox></td>
			<td class="title1">预计竣工日期</td>
			<td><asp:TextBox ID="dtpEndDate" runat="server" cssClass="input2" onfocus="setday(this);" Width="96%"></asp:TextBox></td>
			
		</tr>
		<tr>
			<td class="title1">联系人</td>
			<td><asp:TextBox ID="txtContact" runat="server"  cssClass="input2" MaxLength="200" Width="96%"></asp:TextBox></td>
			<td class="title1">联系电话</td>
			<td><asp:TextBox ID="txtContactPhone" runat="server"  cssClass="input2" MaxLength="30" Width="96%"></asp:TextBox></td>
		</tr>
        <tr>
			<td class="title1">总投资<span class="req">﹡</span></td>
			<td>
            <asp:TextBox ID="numInvestment" runat="server"  cssClass="input2" onchange="setBudget(this.value);" onbeforepaste="numboxPaste();" onkeypress="isDecimal();" Width="96%"></asp:TextBox>
            <asp:Label runat="server" ID="lblInvestment"></asp:Label>
            </td>
            <td class="title1">总投资类型</td>
			<td><asp:DropDownList ID="ddlInvestmentType" runat="server" cssClass="input2"  Width="98%"></asp:DropDownList></td>
		</tr>
		<tr>			
			<td class="title1">财政累计投资<span class="req">﹡</span></td>
			<td><asp:TextBox ID="numFinInvestment" runat="server"  cssClass="input2" onbeforepaste="numboxPaste();" onkeypress="isDecimal();" Width="96%"></asp:TextBox><br />
            <span style="color:Red">2010年及以前财政累计安排投资（以971号文件为准）</span>
            </td>
            <td class="title1">资本金到位金额<span class="req">﹡</span></td>
			<td><asp:TextBox ID="numTotalCapitalAmount" runat="server"  cssClass="input2" onbeforepaste="numboxPaste();" onkeypress="isDecimal();" Width="96%"></asp:TextBox><br />
            <span style="color:Red">如资本金到位金额有变化，请直接修改该值。</span>
            </td>
		</tr>
		<tr>
			<td class="title1">备注</td>
			<td colspan="3"><asp:TextBox ID="txtRemark" runat="server"  cssClass="input2"  TextMode="MultiLine" Rows="12"   Width="98%"></asp:TextBox></td>
		</tr>		
        </table>
        <asp:HiddenField runat="server" ID="hidFCode" />
        <asp:HiddenField runat="server" ID="hidProjectCategory" />
        <asp:HiddenField runat="server" ID="hidSortCode" />
        <asp:HiddenField runat="server" ID="hidLastBudget" />

		</div>
	<div id="myTab_l_Content1" class="none" style="height:100%;overflow-y:hidden" align="center">
			  <div class="button_area" style="width:98%;">
              <asp:HiddenField runat="server" ID="hidAddBudget" />
               <asp:Button runat="server" ID="btnAddBudget" CssClass="btn_normal" 
			        onMouseOver="this.className='btn_active'" 
                    onMouseOut="this.className='btn_normal'" Text="新 增" OnClientClick="return addBudget();"
                    onclick="btnAddBudget_Click"/>
            </div>
            <table cellpadding="0" width="98%" cellspacing="0" border="1" class="t1" id="Table0">
		        <thead> 
                    <th align="center"   width="90px">原概算金额(元)</th>
                    <th align="center"   width="90px">变动后概算金额(元)</th>
                    <th align="center"  width="80px">变动日期</th>
                    <th align="center" width="60px">登记人</th>
                    <th align="center" width="120px">登记时间</th>
                    <th align="center">变动原因</th>
      	        </thead>
		        <asp:Repeater runat="server" ID="rptList_Budget">
			        <ItemTemplate>
				        <tr>
					        <td align="right"><%# string.Format("{0:N}", DataBinder.Eval(Container.DataItem, "SourceMoney"))%></td>
					        <td align="right"><%# string.Format("{0:N}",  DataBinder.Eval(Container.DataItem,"ChangeMoney")) %></td>
					        <td><%# string.Format("{0:yyyy-MM-dd}",  DataBinder.Eval(Container.DataItem,"ChangeDate")) %></td>
					        <td><%#  DataBinder.Eval(Container.DataItem,"SponsorName") %></td>
					        <td><%# string.Format("{0:yyyy-MM-dd HH:mm:ss}",   DataBinder.Eval(Container.DataItem,"CreateTime")) %></td>
					        <td>
						        <%#  DataBinder.Eval(Container.DataItem,"Reason").ToString().Replace("\r\n","</br>") %>
					        </td>
				        </tr>
			        </ItemTemplate>
		        </asp:Repeater>
            </table>
	</div>
	<div id="myTab_l_Content2" class="none" style="height:100%;overflow-y:hidden" align="center">
			<div class="button_area" style="width:96%;padding-top:8px">
            <asp:HiddenField runat="server" ID="hidAddYearPlan" />
        <asp:Button runat="server" ID="btnAddPlanYear" CssClass="btn_normal" 
			onMouseOver="this.className='btn_active'" 
            onMouseOut="this.className='btn_normal'" Text="新 增" OnClientClick="return addYearPlan();"
                    onclick="btnAddPlanYear_Click"/>
    </div>
            
    <table cellpadding="0" width="96%" cellspacing="0" border="1" class="t1" id="Table1">
		<thead> 
            <th align="center" width="60px">投资年度</th>
            <th align="center" width="90px">投资计划(元)</th>
            <th align="center" width="140px">文号</th>
            <th align="center" width="80px">登记人</th>
            <th align="center" width="120px">登记时间</th>
             <th align="center">备注</th>
      	</thead>           
		<asp:Repeater runat="server" ID="rptList_PlanYear">
			<ItemTemplate>
				<tr>
					<td><%#  DataBinder.Eval(Container.DataItem,"PlanYear") %></td>
					<td align="right"><%#string.Format("{0:N}",  DataBinder.Eval(Container.DataItem,"Amount")) %></td>
					<td><%#  DataBinder.Eval(Container.DataItem,"DocNo") %></td>
                    <td><%#  DataBinder.Eval(Container.DataItem,"SponsorName") %></td>
					<td><%# string.Format("{0:yyyy-MM-dd HH:mm:ss}",   DataBinder.Eval(Container.DataItem,"CreateTime")) %></td>
					<td><%#  DataBinder.Eval(Container.DataItem, "Remark").ToString().Replace("\r\n", "</br>")%></td>
				</tr>  
			</ItemTemplate>
		</asp:Repeater>
    </table>
		</div>
		<div id="myTab_l_Content3" class="none" style="height:100%;overflow-y:hidden" align="center">  
		<div class="button_area" style="width:96%;padding-top:8px">
        <asp:HiddenField runat="server" ID="hidAddProjLoan" />
        <asp:Button runat="server" ID="btnAddProjLoan" CssClass="btn_normal" 
			onMouseOver="this.className='btn_active'" 
            onMouseOut="this.className='btn_normal'" Text="新 增"  OnClientClick="return addProjLoan();"
                    onclick="btnAddProjLoan_Click"/>
    </div>
            
    <table cellpadding="0" width="96%" cellspacing="0" border="1" class="t1" id="Table2">
		<thead>  
            <th align="center" width="60px">年度</th>
            <th align="center"  width="90px">贷款额度</th>
            <th align="center" width="80px">登记人</th>
            <th align="center" width="120px">登记时间</th>
            <th align="center">备注</th>
      	</thead>           
		<asp:Repeater runat="server" ID="rptList_ProjLoan">
			<ItemTemplate>
				<tr>
					<td><%#  DataBinder.Eval(Container.DataItem,"TheYear") %></td>
					<td align="right" ><%# string.Format("{0:N}", DataBinder.Eval(Container.DataItem,"Amount")) %></td>
					<td><%#  DataBinder.Eval(Container.DataItem,"SponsorName") %></td>
					<td><%#  string.Format("{0:yyyy-MM-dd HH:mm:ss}",DataBinder.Eval(Container.DataItem,"CreateTime")) %></td>
					<td><%#  DataBinder.Eval(Container.DataItem, "Remark").ToString().Replace("\r\n", "</br>")%></td>
				</tr>  
			</ItemTemplate>
		</asp:Repeater>
    </table>
		</div>
	<div id="myTab_l_Content4" class="none" style="height:100%;overflow-y:hidden" align="center">  

       <div class="button_area" style="width:96%;padding-top:8px">
       <asp:HiddenField runat="server" ID="hidAddGKLoan" />
        <asp:Button runat="server" ID="btnAddGKLoan" CssClass="btn_normal" 
			onMouseOver="this.className='btn_active'" 
            onMouseOut="this.className='btn_normal'" Text="新 增" OnClientClick="return addGKLoan();" onclick="btnAddGKLoan_Click"/>
    </div>
            
    <table cellpadding="0" width="96%" cellspacing="0" border="1" class="t1" id="Table3">
		<thead>  
            <th align="center" width="60px">年度</th>
            <th align="center"  width="90px">贷款额度</th>
            <th align="center" width="80px">登记人</th>
            <th align="center" width="120px">登记时间</th>
            <th align="center">备注</th>
      	</thead>           
		<asp:Repeater runat="server" ID="rptList_GKLoan">
			<ItemTemplate>
				<tr>
					<td><%#  DataBinder.Eval(Container.DataItem,"TheYear") %></td>
					<td align="right"><%# string.Format("{0:N}", DataBinder.Eval(Container.DataItem,"Amount")) %></td>
					<td><%#  DataBinder.Eval(Container.DataItem,"SponsorName") %></td>
					<td><%#  string.Format("{0:yyyy-MM-dd HH:mm:ss}",DataBinder.Eval(Container.DataItem,"CreateTime")) %></td>
					<td><%#  DataBinder.Eval(Container.DataItem, "Remark").ToString().Replace("\r\n", "</br>")%></td>
				</tr>  
			</ItemTemplate>
		</asp:Repeater>
    </table>

		</div>
   <div id="myTab_l_Content5" class="none" style="height:100%;overflow-y:hidden" align="center"> 

            <div style="height:10px">&nbsp;</div>
    <table cellpadding="0" width="96%" cellspacing="0" border="1" class="t1" id="Table4">
		<thead>
            <th align="center" width="120px">登记日期</th>
            <th align="center" width="80px">登记人</th>
            <th align="center">原资本金到位金额</th>
            <th align="center">变动后资本金到位金额</th>
      	</thead>           
		<asp:Repeater runat="server" ID="rptZBJChangeList">
			<ItemTemplate>
				<tr>
					<td><%# string.Format("{0:yyyy-MM-dd}",  DataBinder.Eval(Container.DataItem,"CreateTime")) %></td>
					<td><%#  DataBinder.Eval(Container.DataItem,"CreatorName") %></td>
					<td><%# string.Format("{0:N}", DataBinder.Eval(Container.DataItem,"SourceZBJ")) %></td>
					<td><%# string.Format("{0:N}",  DataBinder.Eval(Container.DataItem,"ChangeZBJ")) %></td>
				</tr>  
			</ItemTemplate>
		</asp:Repeater>
    </table>

		</div>
        <div id="myTab_l_Content6" class="none" style="height:100%;overflow-y:scroll" align="center"> 

            <div style="height:10px">&nbsp;</div>
            <table cellpadding="0" width="96%" cellspacing="0" border="1" class="t1" id="Table5">
		<thead>  
            <th align="center">合同编号</th>
            <th align="center" width="80px">初审日期</th>
            <th align="center" width="100px">初审金额</th>
            <th align="center" width="80px">放款日期</th>
            <th align="center" width="100px">放款金额</th>
            <th align="center" width="80px">实拨日期</th>
            <th align="center" width="100px">实拨金额</th>
      	</thead>           
		<asp:Repeater runat="server" ID="repATList">
			<ItemTemplate>
				<tr>
                    <td><%# DataBinder.Eval(Container.DataItem,"Code") %></td>	
                    <td><%# string.Format("{0:yyyy-MM-dd}", DataBinder.Eval(Container.DataItem,"FirstDate")) %></td>				
					<td align="right"><%# string.Format("{0:N}", DataBinder.Eval(Container.DataItem,"Amount_S")) %></td>
                    <td><%# string.Format("{0:yyyy-MM-dd}", DataBinder.Eval(Container.DataItem,"GiveDate")) %></td>	
					<td align="right"><%# string.Format("{0:N}", DataBinder.Eval(Container.DataItem,"GiveAmount")) %></td>
                    <td><%# string.Format("{0:yyyy-MM-dd}", DataBinder.Eval(Container.DataItem,"BFDate")) %></td>	
					<td align="right"><%# string.Format("{0:N}", DataBinder.Eval(Container.DataItem,"BFAmount")) %></td>
				</tr>  
			</ItemTemplate>
		</asp:Repeater>
        <tr class="a1">
            <td>合计金额</td>	
            <td></td>				
			<td align="right"><asp:Label runat="server" ID="lblAmount_S"></asp:Label></td>
            <td></td>	
            <td align="right"><asp:Label runat="server" ID="lblGiveAmount"></asp:Label></td>	
            <td></td>	
            <td align="right"><asp:Label runat="server" ID="lblBFAmount"></asp:Label></td>	
        </tr>
        <tr class="a1">
            <td>支付比例</td>	
            <td></td>				
			<td align="right"><asp:Label runat="server" ID="lblPP_Amount_S"></asp:Label></td>
            <td></td>	
            <td align="right"><asp:Label runat="server" ID="lblPP_GiveAmount"></asp:Label></td>	
            <td></td>	
            <td align="right"><asp:Label runat="server" ID="lblPP_BFAmount"></asp:Label></td>	
        </tr>
        <tr><td colspan="7" align="left"">说明：支付比例是指合计金额与项目贷款额度的比值。</td></tr>
    </table>
        </div>
	</div>
</div>
<div style="height:8px">&nbsp;</div>
<div class="save_area" style="height:30px">
        <asp:Button runat="server" ID="btnOK" Text="保 存" class="btn_normal" 
            onmouseover="this.className='btn_active'" 
            onmouseout="this.className='btn_normal'" OnClientClick="return checkSave();" onclick="btnOK_Click"/>
        <input type="button" id="btnExit" value="取 消" onclick="javascript:window.returnValue=false;window.close();" class="btn_normal" onmouseover="this.className='btn_active'" onmouseout="this.className='btn_normal'" />
    </div>
    
</asp:Content>